<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Some Working example</title>
<style type="text/css">
.boxed
{
border:solid black 2px;
width:300px;
height:300px;
}
</style>
<link rel="stylesheet"  type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.19/themes/base/jquery-ui.css" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
</head>
<body>
<div id="widget" class="boxed ui-widget-content">
<canvas></canvas>
</div>
</body>
</html>